<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBrandsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('brands', function (Blueprint $table) {
            $table->increments('b_id');
            $table->string('b_name',32);
            $table->string('b_keyword');
            $table->integer('b_parent');
            $table->tinyinteger('b_type');
            $table->string('pic',100);
            $table->string('mark',8);
            $table->integer('orderid');
            $table->integer('classid');
            $table->integer('carid');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('brands');
    }
}
